package com.gl.glbooks.model
{
	import mx.collections.ArrayCollection;

	public class BusquedaPanelModel
	{
		[Bindable]
		public var libros:ArrayCollection;
		
		[Bindable]
		public var categorias:ArrayCollection;
		
		[Bindable]
		public var editoriales:ArrayCollection;
		
		[Bindable]
		public var palabrasClavesSeleccionadas:ArrayCollection = new ArrayCollection();
		
		[Bindable]
		public var palabrasClavesNoSeleccionadas:ArrayCollection;
		
		private var _palabrasClaves:ArrayCollection;
		
		[Bindable]
		public function get palabrasClaves():ArrayCollection
		{
			return _palabrasClaves;
		}

		public function set palabrasClaves( value :ArrayCollection ):void
		{
			if( value != _palabrasClaves )
			{
				_palabrasClaves = value;
				palabrasClavesNoSeleccionadas = new ArrayCollection( _palabrasClaves.toArray() );
				palabrasClavesSeleccionadas.removeAll();
			}
		}
		
		
	}
}